export default {
  // 开启命名空间
  namespaced: true,

  // 数据
  state: () => ({
    lifething: uni.getStorageSync('lifething') || [],
   
  }),

  // 方法
  mutations: {
    updatelifething(state, lifething) {
      state.lifething = lifething
      this.commit('m_life/savelifethingToStorage')
    },
    savelifethingToStorage(state) {
      uni.setStorageSync('lifething', state.lifething)
    },
    
  },
}